package com.macro.mall.tiny.modules.ums.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

@Data
/**
 * 前端传参DTO类
 */
public class UmsAdminScoreInfo {
    //姓名
    private String username;

    //昵称
    private String nickName;

    //组名
    private String group;

    //分数
    @Range(min = 0, max = 200, message = "分数必须在0~200之间 ")
    private Double score;

    //调整分数
    @Range(min = 0, max = 200, message = "分数必须在0~200之间 ")
    private Double adjustScore;

    //最终分数
    @Range(min = 0, max = 200, message = "分数必须在0~200之间 ")
    private Double finalScore;
    //等级
    private String level;


    //表现
    @Range(min = 0, max = 10, message = "分数必须在0~10之间 ")
    private Double performance;

    //工作态度
    @Range(min = 0, max = 10, message = "分数必须在0~10之间 ")
    private Double attitude;

    //加减分
    @Range(min = -10, max = 10, message = "分数必须在-10~10之间 ")
    private Double plusOrMinusPoints;

    //OA得分
    private Double oaScore;

    //系数
    private Double ration;

    //用户ID
    private String personId;


    //创建时间
    @JsonFormat(pattern="yyyy-MM",timezone = "GMT+8")
    private Date createTime;


    //小组ID
    private  String groupId;
}
